package text.text;

public class test1 {
    public static void main(String args[]){
        StudentNode<Student> student = new StudentNode<>();
        student.insertAtHead(new Student("小七",12));
        student.display();
        student.insertAfter(new Student("小七",12),
                             new Student("小狗",13));
        student.display();
        student.remove(new Student("小七",12));
        student.display();

        StudentNode<Dog> dog = new StudentNode<>();
        dog.insertAtHead(new Dog("小王","red"));
        dog.
                display();
    }
}
